
import request from '@/utils/request'
// -------- 敏感词管理 --------

let BASE_ADDRESS = '/base/sensitive'


//添加标签
export const getSensitiveAddAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data
    })
}

//分页查询
export const getSensitiveListAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: 'get',
        params: data
    })
}


//修改敏感词
export const getSensitiveEditAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data: data
    })
}

//删除敏感词
export const getSensitiveRemoveAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data: data
    })
}

//id查询
export const getSensitiveGetInfoAPi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: 'get',
        params: data
    })
}